<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../org/angular.min.js"></script>
</head>
<body>
<div ng-app="hd" ng-controller="ctrl">
    游戏: <input type="checkbox" ng-model="data.game" ng-true-value="1" ng-false-value="0">{{data.game}}
    电影: <input type="checkbox" ng-model="data.video" ng-true-value="1" ng-false-value="0">{{data.video}}
    <div ng-show="data.game==1">
        <h1>游戏:</h1>
        <textarea name="" id="" cols="30" rows="10"></textarea>
    </div>
    <div ng-show="data.video==1">
        <h2>电影:</h2>
        <textarea name="" id="" cols="30" rows="10"></textarea>
    </div>
</div>
<script>
    var m = angular.module('hd', []);
    m.controller('ctrl', ['$scope', function ($scope) {
        // $scope.data = {game: 0, video: 0};
    }]);
</script>
</body>
</html>